<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录页</title>

<link href="${CDN!}/ui/css/index_style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${CDN!}/ui/js/jquery.min.js"></script>
<SCRIPT>
function windowHeight() {
    var de = document.documentElement;
    return self.innerHeight||(de && de.clientHeight)||document.body.clientHeight;
}
window.onload=window.onresize=function(){
	var wh=windowHeight();
	document.getElementById("con").style.height = (wh-document.getElementById("kkk").offsetHeight)+"px";
}
	// 禁止登录页内嵌
	if (window != top){
		parent.location.href = location.href; 
	}
	
	var UA = navigator.userAgent.toLowerCase();
    var browerKernel = {
        isWebkit: function() {
            if (/webkit/i.test(UA)) return true;
            else return false;
        },
	    isFirefox: function() {
            if (/firefox/i.test(UA)) return true;
            else return false;
		}
    }

	if(!browerKernel.isWebkit()){
		alert("您当前浏览器无法兼容本系统！\n推荐使用Google Chrome 浏览器！\n\n其它兼容浏览器：\n360浏览器极速模式\n搜狗高速浏览器3\n世界之窗极速版\n猎豹浏览器\nQQ浏览器");
	}
	function saveDate(){
		var loginId=$('#loginId').val();
		var loginPwd=$('#loginPwd').val();
		if(loginId=='' || loginPwd==''){
			$('#sqyzm').html('用户名或密码不能为空');
		}else{
			$('#loginForm').submit();
		}
	}
	function resetDate(){
		$('#loginForm')[0].reset();
	}
</script>
</head>
<body>

<div id="con">
<div class="FirstDIV"></div>
<form method="post" id="loginForm" action="${CDN!}/doLogin">
 <div id="login-wk" class="SecondDIV">
  <div id="kong">
     </div>
    <div id="uer-wk">
      <input type="text" class="text" name="loginId" value="${loginId!}" size="20" id="loginId"/>
    </div>
    <div id="password">
      <input type="password" class="text" name="loginPwd" value="${loginPwd!}" size="20" id="loginPwd"/>
    </div>
    <div id="shurk">
      </div>
    <div id="sqyzm" style="color: red;font-weight: bold;">${msg!}</div>
    <div id="dengl">
    <span class="delu"> <a href="#" onclick="saveDate()"><img src="${CDN!}/ui/images/denglu.png" width="108" height="41" /></a></span>
    <span class="delu"><a href="#" onclick="resetDate()"><img src="${CDN!}/ui/images/chongzhi.png" width="108" height="41" /></a></span>
    </div>
  </div>
</form>  
</div>
<div id="kkk"></div>
</body>
</html>
